<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>SpringBoot模版渲染</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
</head>
<body>
<form action="#" th:action="@{/add}" th:object="${message}" method="post">
    <input type="text" th:field="${message?.info}" />
    <input type="submit" />
</form>
</body>
</html>